<%--
  Created by IntelliJ IDEA.
  User: 蔡岳衡
  Date: 2016/8/1
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<title>建模操作记录</title>

<p>
<div class="row">
	<!-- 搜索条件部分begin -->
	<div class="research_content_col col-xs-12 col-sm-12">
		<form action="" id="operRecordSearchForm">
			<div class="form-group col-xs-12 col-sm-3 researchInput">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">操作记录</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-input">
					<input class="form-control" placeholder="请输入操作记录..."
						   type="text" name="Q_record_like">
				</div>
			</div>
			<div class="form-group col-xs-12 col-sm-3 researchInput">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">操作结果</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-input">
					<input class="form-control" placeholder="请输入操作结果..."
						   type="text" name="Q_result_like">
				</div>
			</div>
			<div class="form-group col-xs-12 col-sm-3 researchInput">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">操作SQL</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-input">
					<input class="form-control" placeholder="请输入操作SQL..."
						   type="text" name="Q_operationSql_like">
				</div>
			</div>
			<div class="form-group col-xs-6 col-sm-3 researchSelect">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">操作类型</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-select">
					<select id="operRecordType" name="Q_type_=_short" class="select2" data-placeholder="请选择操作类型...">
					</select>
				</div>
			</div>
			<div class="form-group col-xs-12 col-sm-3 researchInput">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">创建时间</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-input">
					<div class="input-append date form_datetime">
						<input name="Q_createTime_>=_Date" value=""
							   type="text" readonly>
						<span class="add-on"><i class="icon-th"></i></span>
					</div>
				</div>
			</div>
			<div class="form-group col-xs-12 col-sm-3 researchInput">
				<label class="col-xs-3 col-sm-4 col-lg-3 control-label">结束时间</label>
				<div class="col-xs-9 col-sm-8 col-lg-9 control-input">
					<div class="input-append date form_datetime">
						<input name="Q_createTime_<=_Date" value=""
							   type="text" readonly>
						<span class="add-on"><i class="icon-th"></i></span>
					</div>
				</div>
			</div>
		</form>
	</div>
	<!-- 搜索条件部分end -->
</div>
</p>

<div class="row">
	<div class="col-xs-12">
		<p>
		<div class="row">
			<div class="col-xs-12 col-sm-12">
				<button type="button" class="btn btn-success btn-sm" onclick="operRecord.search(false)">
					<span class="glyphicon glyphicon-search"></span>&nbsp;&nbsp;搜索
				</button>
				<button type="button" class="btn btn-info btn-sm" onclick="operRecord.clear();">
					<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;清空查询
				</button>
			</div>
		</div>
		<%--按钮部分结束--%>
		<p>
		<div class="row">
			<div class="col-xs-12 col-sm-12" style="overflow: hidden;">
				<table id="operRecordJqgridTable"></table>
				<div id="operRecordJqgridPager"></div>
			</div>
		</div>
	</div>
</div>

<%--<div id="demoMainDiv">
	<div class="row" id="topMainDiv">
		<div class="col-xs-12 col-sm-12">
			<div class="row sun-row">
				<div class="col-xs-12 sun-col">
					<!-- 查询部分begin -->
					<div class="sun-widget-research">
						<!-- 搜索条件部分begin -->
						<form action="" id="operRecordSearchForm">
							<div class="col-xs-12 sun-research-content">
								<!-- 文本形式的查询条件 -->

								<div class="form-group col-xs-6 col-sm-3 sun-form-input">
									<label class="col-xs-3 col-sm-4 col-lg-3 sun-control-label"
									       style="text-align: center;font-size: 13px;">操作记录</label>
									<div class="col-xs-9 col-sm-8 col-lg-9 sun-control-input">
										<input type="text" name="Q_record_like" class="sun-form-input form-control"
										       style="height: 29px;"/>
									</div>
								</div>
								<div class="form-group col-xs-6 col-sm-3 sun-form-input">
									<label class="col-xs-3 col-sm-4 col-lg-3 sun-control-label"
									       style="text-align: center;font-size: 13px;">操作结果</label>
									<div class="col-xs-9 col-sm-8 col-lg-9 sun-control-input">
										<input type="text" name="Q_result_like" class="sun-form-input form-control"
										       style="height: 29px;"/>
									</div>
								</div>
								<div class="form-group col-xs-6 col-sm-3 sun-form-input">
									<label class="col-xs-3 col-sm-4 col-lg-3 sun-control-label"
									       style="text-align: center;font-size: 13px;">操作SQL</label>
									<div class="col-xs-9 col-sm-8 col-lg-9 sun-control-input">
										<input type="text" name="Q_operationSql_like"
										       class="sun-form-input form-control" style="height: 29px;"/>
									</div>
								</div>
								<div class="form-group col-xs-6 col-sm-3 sun-form-select">
									<label class="col-xs-3 col-sm-4 col-lg-3 sun-control-label"
									       style="font-size: 13px;">操作类型</label>
									<div class="col-xs-9 col-sm-8 col-lg-9 sun-control-select">
										<select class="select2 sun-form-select" name="Q_type_=_short"
										        id="operRecordType" style="height: 29px;">
										</select>
									</div>
								</div>
								<div class="form-group col-xs-6 col-sm-3 sun-form-input" style="margin-top: 10px">

									<label class="col-xs-4 col-sm-3 col-lg-3 sun-control-label"
										   style="font-size: 13px; text-align: left; padding-left: 8px; width: 70px ">创建时间</label>
									<div class="col-xs-8 col-sm-9 col-lg-9 sun-control-input">
										<div class="input-append date form_datetime">
											<input name="Q_createTime_>=_Date" size="16" value=""
												   style="width: 210px; height: 29px; "
												   type="text" readonly>
											<span class="add-on"><i class="icon-th"></i></span>
										</div>
									</div>
								</div>
								<div class="form-group col-xs-6 col-sm-3 sun-form-input" style="margin-top: 10px">
									<label class="col-xs-4 col-sm-3 col-lg-3 sun-control-label"
										   style="font-size: 13px; text-align: left; padding-left: 8px; width: 70px ">至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
									<div class="col-xs-8 col-sm-9 col-lg-9 sun-control-input">
										<div class="input-append date form_datetime">
											<input name="Q_createTime_<=_Date" size="16" value=""
												   style="width: 210px; height: 29px; "
												   type="text" readonly>
											<span class="add-on"><i class="icon-th"></i></span>
										</div>
									</div>
								</div>
							</div>
						</form>
						<!-- 搜索条件部分end -->
						<!-- 搜索按钮部分begin -->
						<div class="col-xs-12" style="margin-top:15px; margin-bottom: 10px;padding-left: 0px">
							<button type="button" class="btn btn-success btn-sm" onclick="operRecord.search(false)">
								<span class="glyphicon glyphicon-search"></span>&nbsp;&nbsp;搜索
							</button>
							<button type="button" class="btn btn-info btn-sm" onclick="operRecord.clear();">
								<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;清空查询
							</button>

						</div>
						<!-- 搜索按钮部分end -->
					</div>
					<!-- 查询部分end -->
				</div>


				&lt;%&ndash;jqGrid表格部分start&ndash;%&gt;
				<div class="col-xs-12" style="padding-left: 0px">
					<table id="operRecordJqgridTable"></table>

					<div id="operRecordJqgridPager"></div>

				</div>
				<!-- jqGrid表格部分end -->
			</div>
		</div>
	</div>
</div>--%>


<script type="text/javascript">
	var scripts = [
		null,
		path + '/admin/powerdb/designer/operationRecord/js/operationRecord.js',
		null
	];

	$('.page-content-area').ace_ajax('loadScripts', scripts, function () {
		$(document).ready(function () {
			operRecord.init();
		})
	});
	$('.form_datetime').datetimepicker({
		format: "yyyy-mm-dd hh:ii:ss",
		autoclose: true,
		todayBtn: true,
		pickerPosition: "bottom-left"
	});
</script>

